Optimal. Leaf size=160 \[ \frac {64 c^3 \cos (e+f x) (a+a \sin (e+f x))^m}{f (5+2 m) \left (3+8 m+4 m^2\right ) \sqrt {c-c \sin (e+f x)}}+\frac {16 c^2 \cos (e+f x) (a+a \sin (e+f x))^m \sqrt {c-c \sin (e+f x)}}{f \left (15+16 m+4 m^2\right )}+\frac {2 c \cos (e+f x) (a+a \sin (e+f x))^m (c-c \sin (e+f x))^{3/2}}{f (5+2 m)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.18, antiderivative size = 160, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 28, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.071, Rules used = {2819, 2817}
\begin {gather*} \frac {64 c^3 \cos (e+f x) (a \sin (e+f x)+a)^m}{f (2 m+5) \left (4 m^2+8 m+3\right ) \sqrt {c-c \sin (e+f x)}}+\frac {16 c^2 \cos (e+f x) \sqrt {c-c \sin (e+f x)} (a \sin (e+f x)+a)^m}{f \left (4 m^2+16 m+15\right )}+\frac {2 c \cos (e+f x) (c-c \sin (e+f x))^{3/2} (a \sin (e+f x)+a)^m}{f (2 m+5)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2817
Rule 2819
Rubi steps
\begin {align*} \int (a+a \sin (e+f x))^m (c-c \sin (e+f x))^{5/2} \, dx &=\frac {2 c \cos (e+f x) (a+a \sin (e+f x))^m (c-c \sin (e+f x))^{3/2}}{f (5+2 m)}+\frac {(8 c) \int (a+a \sin (e+f x))^m (c-c \sin (e+f x))^{3/2} \, dx}{5+2 m}\\ &=\frac {16 c^2 \cos (e+f x) (a+a \sin (e+f x))^m \sqrt {c-c \sin (e+f x)}}{f \left (15+16 m+4 m^2\right )}+\frac {2 c \cos (e+f x) (a+a \sin (e+f x))^m (c-c \sin (e+f x))^{3/2}}{f (5+2 m)}+\frac {\left (32 c^2\right ) \int (a+a \sin (e+f x))^m \sqrt {c-c \sin (e+f x)} \, dx}{15+16 m+4 m^2}\\ &=\frac {64 c^3 \cos (e+f x) (a+a \sin (e+f x))^m}{f \left (15+46 m+36 m^2+8 m^3\right ) \sqrt {c-c \sin (e+f x)}}+\frac {16 c^2 \cos (e+f x) (a+a \sin (e+f x))^m \sqrt {c-c \sin (e+f x)}}{f \left (15+16 m+4 m^2\right )}+\frac {2 c \cos (e+f x) (a+a \sin (e+f x))^m (c-c \sin (e+f x))^{3/2}}{f (5+2 m)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 1.58, size = 149, normalized size = 0.93 \begin {gather*} -\frac {c^2 \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right ) (a (1+\sin (e+f x)))^m \sqrt {c-c \sin (e+f x)} \left (-89-56 m-12 m^2+\left (3+8 m+4 m^2\right ) \cos (2 (e+f x))+4 \left (7+16 m+4 m^2\right ) \sin (e+f x)\right )}{f (1+2 m) (3+2 m) (5+2 m) \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.21, size = 0, normalized size = 0.00 \[\int \left (a +a \sin \left (f x +e \right )\right )^{m} \left (c -c \sin \left (f x +e \right )\right )^{\frac {5}{2}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.51, size = 306, normalized size = 1.91 \begin {gather*} -\frac {2 \, {\left ({\left (4 \, m^{2} + 24 \, m + 43\right )} a^{m} c^{\frac {5}{2}} - \frac {{\left (12 \, m^{2} + 40 \, m - 15\right )} a^{m} c^{\frac {5}{2}} \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} + \frac {2 \, {\left (4 \, m^{2} + 8 \, m + 35\right )} a^{m} c^{\frac {5}{2}} \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + \frac {2 \, {\left (4 \, m^{2} + 8 \, m + 35\right )} a^{m} c^{\frac {5}{2}} \sin \left (f x + e\right )^{3}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{3}} - \frac {{\left (12 \, m^{2} + 40 \, m - 15\right )} a^{m} c^{\frac {5}{2}} \sin \left (f x + e\right )^{4}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{4}} + \frac {{\left (4 \, m^{2} + 24 \, m + 43\right )} a^{m} c^{\frac {5}{2}} \sin \left (f x + e\right )^{5}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{5}}\right )} e^{\left (2 \, m \log \left (\frac {\sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} + 1\right ) - m \log \left (\frac {\sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + 1\right )\right )}}{{\left (8 \, m^{3} + 36 \, m^{2} + 46 \, m + 15\right )} f {\left (\frac {\sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + 1\right )}^{\frac {5}{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 277, normalized size = 1.73 \begin {gather*} -\frac {2 \, {\left ({\left (4 \, c^{2} m^{2} + 8 \, c^{2} m + 3 \, c^{2}\right )} \cos \left (f x + e\right )^{3} - {\left (4 \, c^{2} m^{2} + 24 \, c^{2} m + 11 \, c^{2}\right )} \cos \left (f x + e\right )^{2} - 32 \, c^{2} - 2 \, {\left (4 \, c^{2} m^{2} + 16 \, c^{2} m + 23 \, c^{2}\right )} \cos \left (f x + e\right ) + {\left ({\left (4 \, c^{2} m^{2} + 8 \, c^{2} m + 3 \, c^{2}\right )} \cos \left (f x + e\right )^{2} - 32 \, c^{2} + 2 \, {\left (4 \, c^{2} m^{2} + 16 \, c^{2} m + 7 \, c^{2}\right )} \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )\right )} \sqrt {-c \sin \left (f x + e\right ) + c} {\left (a \sin \left (f x + e\right ) + a\right )}^{m}}{8 \, f m^{3} + 36 \, f m^{2} + 46 \, f m + {\left (8 \, f m^{3} + 36 \, f m^{2} + 46 \, f m + 15 \, f\right )} \cos \left (f x + e\right ) - {\left (8 \, f m^{3} + 36 \, f m^{2} + 46 \, f m + 15 \, f\right )} \sin \left (f x + e\right ) + 15 \, f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 10.05, size = 163, normalized size = 1.02 \begin {gather*} \frac {c^2\,{\left (a\,\left (\sin \left (e+f\,x\right )+1\right )\right )}^m\,\sqrt {-c\,\left (\sin \left (e+f\,x\right )-1\right )}\,\left (3\,\cos \left (3\,e+3\,f\,x\right )-175\,\cos \left (e+f\,x\right )+28\,\sin \left (2\,e+2\,f\,x\right )+16\,m^2\,\sin \left (2\,e+2\,f\,x\right )-104\,m\,\cos \left (e+f\,x\right )+8\,m\,\cos \left (3\,e+3\,f\,x\right )-20\,m^2\,\cos \left (e+f\,x\right )+64\,m\,\sin \left (2\,e+2\,f\,x\right )+4\,m^2\,\cos \left (3\,e+3\,f\,x\right )\right )}{2\,f\,\left (\sin \left (e+f\,x\right )-1\right )\,\left (8\,m^3+36\,m^2+46\,m+15\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________